package org.panxiong.openapi.openapi.model;

import java.io.Serializable;

public class Components implements Serializable {
    private Schemas schemas;

    public void addSchema(String name, Schema schema) {
        this.schemas = new Schemas();
        this.schemas.put(name, schema);
    }

    public static class Schemas {
        private Schema pet;

        public void put(String name, Schema schema) {
            this.pet = schema;
        }
    }

    public static class Schema {
        private String type;
        private String ref;

        public void setType(String type) {
            this.type = type;
        }

        public void setRef(String ref) {
            this.ref = ref;
        }
    }
}
